package com.example.demo.mapper;

import com.example.demo.entity.GoodsType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 商品类型表 Mapper 接口
 * </p>
 *
 * @author Mr.Xiayh
 * @since 2024-06-04
 */
@Mapper
public interface GoodsTypeMapper extends BaseMapper<GoodsType> {
    @Select("SELECT * FROM goods_type WHERE type_id = #{goodsTypeId} AND flag = 1")
    public GoodsType selectByTypeId(Integer goodsTypeId);
}
